package com.springboot.astra.bean;

import java.util.List;

public class Order {
    private Integer orderId;
    private String orderNo;
    private User user;
    private Integer userId;
    private Double total;
    private Integer orderStatus;
    private Integer payType;
    private String payTime;
    private Boolean isDelete;
    private String createTime;
    private String updateTime;
    private List<Orderitem> orderitems;

    public Order() {
    }

    public Order(Integer orderId, String orderNo, User user, Double total, Integer orderStatus, Integer payType, String payTime, Boolean isDelete, String createTime, String updateTime, List<Orderitem> orderitems) {
        this.orderId = orderId;
        this.orderNo = orderNo;
        this.user = user;
        this.total = total;
        this.orderStatus = orderStatus;
        this.payType = payType;
        this.payTime = payTime;
        this.isDelete = isDelete;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.orderitems = orderitems;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Double getTotal() {
        return total;
    }

    public void setTotal(Double total) {
        this.total = total;
    }

    public Integer getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(Integer orderStatus) {
        this.orderStatus = orderStatus;
    }

    public Integer getPayType() {
        return payType;
    }

    public void setPayType(Integer payType) {
        this.payType = payType;
    }

    public String getPayTime() {
        return payTime;
    }

    public void setPayTime(String payTime) {
        this.payTime = payTime;
    }

    public Boolean getDelete() {
        return isDelete;
    }

    public void setDelete(Boolean delete) {
        isDelete = delete;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public List<Orderitem> getOrderitems() {
        return orderitems;
    }

    public void setOrderitems(List<Orderitem> orderitems) {
        this.orderitems = orderitems;
    }
}
